package com.wnnight.wys.entity.car;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @ClassName: CarInOut
 * @Description: 车辆进出表实体类
 * @author: CHX42
 * @date: 2022/8/27-19:44
 * @version: v1.0
 */
@Setter
@Getter
@ToString
@TableName(value = "park",keepGlobalPrefix = true)
@ExcelIgnoreUnannotated //忽略所有未注释的字段
public class CarInOut {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("in_time")
    @ExcelProperty(value = "入园时间", index = 1)
    private String inTime;
    @TableField("out_time")
    @ExcelProperty(value = "出园时间", index = 2)
    private String outTime;
    @TableField("car_id")
    private Integer carId;
    @TableField("car_num")
    @ExcelProperty(value = "车牌号码", index = 0)
    private String carNum;
    
    @TableField(exist = false)
    private Car car;
    @TableField(exist = false)
    private String startInTime;
    @TableField(exist = false)
    private String endInTime;
    @TableField(exist = false)
    private String startOutTime;
    @TableField(exist = false)
    private String endOutTime;
}
